﻿using Nvigorate.Data;

namespace Nvigorate.Test.Data.Doubles
{
    public class TestTransactionManager : ITransactionManager
    {
        #region Public Properties

        public int AbortCalledCount { get; set; }
        public int BeginCalledCount { get; set; }
        public int CompleteCalledCount { get; set; }

        #endregion

        #region Public Methods

        public void AbortTransaction()
        {
            AbortCalledCount++;
        }

        public void BeginTransaction()
        {
            BeginCalledCount++;
        }

        public void CompleteTransaction()
        {
            CompleteCalledCount++;
        }

        #endregion
    }
}